﻿
@{
    Layout = null;

    var lan = Request["lan"];

    if (lan != "en")
    {
        lan = "";
    }

    var catalogId = new Guid("bd114123-afad-44a0-8af3-bd6de2a6eb1f");
    var catalogKeyCompany = "lxwm";
    var catalogKeyyqlj = "yqlj";
    var catalogKeyAD = "gg";
    var catalogKeycpfl = "cpfl";
    var catalogKeyryzz = "ryzz";


    if (lan == "en")
    {
        catalogId = new Guid("c7298d3a-5659-4ee0-86e6-fb4ca28e4c7d");
        catalogKeyCompany += "_en";
        catalogKeyyqlj += "_en";
        catalogKeyAD += "_en";
        catalogKeycpfl += "_en";
        catalogKeyryzz += "_en";
    }

    var company = IoCHeler.Resolve<IArticleAppService>().GetArticles(new ArticleCondition() { CatalogKey = catalogKeyCompany }, "").FirstOrDefault() ?? new Article();
    var menu = IoCHeler.Resolve<ICatalogAppService>().GetHierarchicalDtos(catalogId, CatalogType.Article).ToList();
    var yqljList = IoCHeler.Resolve<IArticleAppService>().GetArticles(new ArticleCondition() { CatalogKey = catalogKeyyqlj }, "").ToList();

    var news = IoCHeler.Resolve<IArticleAppService>().GetArticle("xwzx");
}

<!doctype html>
<html>
<head>
    <meta http-equiv="cleartype" content="on" />
    <meta http-equiv="x-ua-compatible" content="ie=edge, chrome=1" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0" />

    <script src='/App_Content/js/fontRatio.js'></script>
    <link href="/App_Content/css/jquery.mCustomScrollbar.css" rel="stylesheet" type="text/css" media="all" />
    <link href="/App_Content/css/css.css" rel="stylesheet" type="text/css" media="all" />
    <!-- Link Swiper's CSS -->
    <link rel="stylesheet" href="/App_Content/css/swiper.min.css">
    <script type="text/javascript" src="/App_Content/js/jquery-1.11.1.min.js"></script>
    <script type="text/javascript" src="/App_Content/js/jquery-migrate-1.3.0.min.js"></script>
    <script type="text/javascript" src="/App_Content/js/comm.js"></script>
    <link href="/App_Content/css/fr.css" rel="stylesheet" type="text/css" media="all" />


    <meta content="福人集团" name="keywords" />
    <meta content="福人集团" name="description" />
    <title>
        @company.Title
    </title>

    <style>
        html { overflow-y: scroll; }
    </style>

    <!--<script type="text/javascript" src="/player/jwplayer.js"></script>-->

</head>
<body data-controller="Home" data-actioni="Index" data-base="/" data-cid="9">
    <div class="inner-top" style="top: 0px;">
        <!--<a href="javascript:void(0);" class="menu-btn"></a>
        <div class="logo">
            <img src="/App_Content/css/images/logo.png" width="288" height="95">
        </div>-->
        <!--<div class="qrcode">
            <img src="http://www.kano-cn.com/Files/427b0ed60e4b0b055af14e9cef495330.png" width="150">
        </div>-->
        <a href="javascript:void(0);" class="menu-btn"></a>
        <a href="#" class="language-btn"></a>
        <!--<a href="javascript:void(0);" class="back-btn"></a>-->
    </div>
    <div class="top-bar noborder">
        <div class="logo"><img src="@company.TitleImageUrl" /></div>

    </div>
    <div class="menu " style="background-color:rgba(0,0,0,0.9);">

        <a href="javascript:void(0);" class="close" onclick="$('.menu').hide(); $('body').removeClass('ovh');">
            <img src="/App_Content/css/images/close-menu.png" width="30" height="30" />
        </a>
        <div class="menu-c mlAuto">
            <div align="center" class="mlogo" style="position:static;">
                <img src="@company.TitleImageUrl" />
            </div>
            <div class="menu-inner">
                <div class="l">
                    @foreach (var item in menu)
                    {

                        if (item.childs != null && item.key != "sy")
                        {
                            <a data-controller="home" href="@JsonHelper.GetString(item.childs[0].path,"Target")" class="nav-hasChild" onmouseover="showChild(this)" title="@item.text">
                                <div class="@lan">@item.text</div>
                                <div class="childs" style="display:none;">
                                    @foreach (var child in item.childs)
                                    {
                                        <a href="@JsonHelper.GetString(child.path,"Target")" title="@child.text">@child.text </a>
                                    }
                                </div>
                            </a>
                        }
                        else
                        {
                            <a data-controller="home" href="@JsonHelper.GetString(item.path,"Target")" onmouseover="showChild(this)" title="@item.text">
                                <div class="@lan">@item.text</div>
                                <div class="childs" style="display:none;">

                                    <a href="@JsonHelper.GetString(item.path,"Target")" title="@item.text">@item.text </a>

                                </div>
                            </a>

                        }

                    }

                </div>
                <div class="r">
                    <form method="GET" id="search-form" action="/Product/List/">
                        <!--<div class="search">
                            <div class="input">
                                <div class="ic">
                                    <input type="text" name="key" value="" />
                                </div>
                            </div>
                            <div class="btn">
                                <a href="javascript:void(0);" onclick="$('#search-form').submit(); return false;"></a>
                            </div>
                        </div>-->
                        <div class="height30"></div>
                        <div class="menu-categorys">
                        </div>
                    </form>
                </div>
                <div class="height1"></div>
            </div>
        </div>
    </div>

    <div class="mlAuto main">




        @Html.Action("Read", "Articles", new { area = "CMS", ParentCatalogKey = catalogKeyAD, VView = "ReadForAD" })


        <div class="height50"></div>
        <div class="height10"></div>

        <div class="main-item has-animate index-company">
            <div class="gt1">
                公司介绍
            </div>

            <div class="item l">
                <div class="lc" style="background-image: url(@company.ImageUrl)"></div>
            </div>
            <div class="item r">
                <div class="rc">
                    <div class="rc-inner">
                        <p class="p1">
                            @company.Summary
                        </p><p><br /></p>
                        @*<a class="a1" href="#">more >></a>*@
                    </div>
                </div>
            </div>
        </div>
        <div class="height50"></div>
        <div class="height10"></div>


        @Html.Action("Read", "Articles", new { area = "CMS", CatalogKey = catalogKeycpfl, VView = "ReadForProductType" })


        <div class="height50"></div>
        <div class="height10"></div>

        @Html.Action("Read", "Articles", new { area = "CMS", CatalogKey = catalogKeyryzz, VView = "ReadForLicence" })

        <div class="height50"></div>
        <div class="height10"></div>



        @if (news != null)
        {
            <div class="main-item has-animate index-company main-item-2">
                <div class="gt1">
                    新闻资讯<a href="/cms/Articles/news?catalogKey=xwzx">more+</a>
                </div>

                <div class="item l">
                    <div class="lc" style="background-image: url(/App_Content/css/images/about-2.jpg)"></div>
                </div>
                <div class="item r">
                    <div class="rc">
                        <div class="rc-inner">
                            <h3><a style="color:#fff" href="/cms/Articles/detail?id=@(news.Id)&preCatalogKey=xwzx">@news.Title</a></h3>
                            <div class="main-page">
                                <div class="nav">
                                </div>
                                <div class="content1" style="height:8rem;overflow:hidden;">
                                    @Html.Raw(news.Text)
                                </div>
                            </div>
                            <p><br /></p>
                            @*<a class="a1" href="#">查看详情 >></a>*@
                        </div>
                    </div>
                    <style>
                        .main-page { position: relative; padding-right: 25px; }
                        .main-page .nav { position: absolute; right: 0; top: 0; }
                        .main-page .nav div { width: 10px; height: 10px; background-color: #fff; margin: 12px 0; border-radius: 15px; cursor: pointer; transition: all 0.5s; -moz-transition: all 0.5s; /* Firefox 4 */ -webkit-transition: all 0.5s; /* Safari 和 Chrome */ -o-transition: all 0.5s; }
                        .main-page .nav div.on { height: 60px; }
                    </style>
                    <script>
                        $(".main-page .nav div").mouseenter(function () {
                            var $this = $(this);
                            var index = $this.index();
                        }).mouseleave(function () {
                            var $this = $(this);
                            var index = $this.index();
                        }).click(function () {
                            var $this = $(this);
                            var index = $this.index();
                            var l = -(index * $('.content1').height());
                            $(".main-page .nav div").removeClass("on");
                            $(".main-page .nav div").eq(index).addClass("on");
                            $(".main-page .content1 .con-ggh:eq(0)").stop().animate({ "margin-top": l }, 500);
                        });

                    </script>
                </div>
            </div>
            <div class="height50"></div>
            <div class="height10"></div>
        }


        <div class="footer">
            <div class="f_box">
                <h3>
                    @foreach (var item in menu)
                    {
                        <a href="@JsonHelper.GetString(item.path,"Target")">@item.text</a>
                    }

                    <div class="clear"></div>
                </h3>
                <div class="clear"></div>
                <div class="b1">
                    <h4>@company.Title</h4>
                    <p>地址：@company.SubTitle</p>
                    <p>电话：@company.Tag</p>
                    <p>传真：@company.Origin</p>
                    <p>Email：@company.Author</p>
                </div>
                <div class="b2">
                    <img src="/App_Content/css/images/ewm.jpg" />
                </div>
                <div class="b3">
                    <h4>友情链接</h4>
                    @foreach (var item in yqljList)
                    {
                        <a href="@item.TransferUrl" target="_blank">@item.Title</a>
                    }
                </div>
                <div class="clear"></div>
            </div>
            <div class="b_box">
                <div class="bottom">
                    <i class="backTop">返回顶部</i>
                    <p><em>@company.ExtField01</em><em>@company.ExtField02</em></p>
                </div>
                <div class="clear"></div>
            </div>
        </div>
    </div>
    <script src='/App_Content/js/common.js'></script>
    <!-- Swiper JS -->
    <script src="/App_Content/js/swiper.min.js"></script>
    <script src="/App_Content/js/fr.js"></script>


    <script>
        if (isTouch) {
            onSwiper();
        }
        function onSwiper() {
            var html = '<div class="swiper-container"><div class="swiper-wrapper">'
            $('.main-banner .list').each(function () {
                html += $(this).html();
            })
            html += '</div></div>';
            console.log(html)
            $('.swiper-box').append(html);
            $('.swiper-box .list-c').addClass('swiper-slide').removeClass('list-c');
            setTimeout(function () {
                var swiper = new Swiper('.swiper-container');
            })
        }

        $(function () {
            $('.main-banner ').css('height', $(window).height());
        });

        window.showChild = function (t) {
            var _h = $(t).next().html();
            $('.menu-categorys').html(_h);
            $(t).addClass('on').siblings().removeClass('on');
        };

        setTimeout(function () {
            $('.nav-hasChild').eq(0).mouseover();
        }, 500);

    </script>

    <link href="/App_Content/lightbox/css/lightbox.min.css" rel="stylesheet" />
    <script src="/App_Content/lightbox/js/lightbox-plus-jquery.min.js"></script>
</body>

</html>


